package com.hlhome.cllz.gyms.util;

//
///**
// * Created by lingb on 2018/5/29
// */
//public class PasswordHelper {
//
//    // 散列算法:这里使用MD5算法
//    private static String algorithmName = "MD5";
//    // 散列的次数，比如散列两次，相当于 md5(md5(""))
//    private static int hashIterations = 2;
//
//    public static void encryptPassword(UserVO userVO) {
//
//        String newPassword = new SimpleHash(algorithmName, userVO.getPassword(),  ByteSource.Util.bytes(userVO.getUserName()), hashIterations).toHex();
/////        String newPassword = new SimpleHash(algorithmName, userDO.getPassword()).toHex();
//        userVO.setPassword(newPassword);
//
//    }

/*
    public static void main(String[] args) {
        PasswordHelper passwordHelper = new PasswordHelper();
        UserDO userDO = new UserDO();
        userDO.setUserName("admin");
        userDO.setPassword("admin");
        passwordHelper.encryptPassword(userDO);
        System.out.println(userDO);
    }
    */
//}
